package mytest;

import org.junit.jupiter.api.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.context.support.StaticMessageSource;

public class Demo {

	private static final String SOURCE_PATH = "/mytest/";

	private static final String BEAN_XML = SOURCE_PATH + "simpleContext.xml";

	@Test
	void test() {
		ClassPathXmlApplicationContext ac = new ClassPathXmlApplicationContext(BEAN_XML);
		StaticMessageSource sms = ac.getBean(StaticMessageSource.class);
		System.out.println(sms);
	}
}
